<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use \dmstr\bootstrap\Tabs;
use yii\helpers\StringHelper;

/**
* @var yii\web\View $this
* @var yiike\finance\models\ComboAllot $model
* @var yii\widgets\ActiveForm $form
*/

?>

<div class="combo-allot-form">

    <?php $form = ActiveForm::begin([
    'id' => 'ComboAllot',
    'layout' => 'horizontal',
    'enableClientValidation' => true,
    'errorSummaryCssClass' => 'error-summary alert alert-danger',
    'fieldConfig' => [
             'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
             'horizontalCssClasses' => [
                 'label' => 'col-sm-2',
                 #'offset' => 'col-sm-offset-4',
                 'wrapper' => 'col-sm-8',
                 'error' => '',
                 'hint' => '',
             ],
         ],
    ]
    );
    ?>

    <div class="">
        <?php $this->beginBlock('main'); ?>

        <p>
            

<!-- attribute order_id -->
			<?= $form->field($model, 'order_id')->textInput() ?>

<!-- attribute user1 -->
			<?= $form->field($model, 'user1')->textInput() ?>

<!-- attribute user2 -->
			<?= $form->field($model, 'user2')->textInput() ?>

<!-- attribute user3 -->
			<?= $form->field($model, 'user3')->textInput() ?>

<!-- attribute user4 -->
			<?= $form->field($model, 'user4')->textInput() ?>

<!-- attribute user5 -->
			<?= $form->field($model, 'user5')->textInput() ?>

<!-- attribute user6 -->
			<?= $form->field($model, 'user6')->textInput() ?>

<!-- attribute user7 -->
			<?= $form->field($model, 'user7')->textInput() ?>

<!-- attribute user8 -->
			<?= $form->field($model, 'user8')->textInput() ?>

<!-- attribute user9 -->
			<?= $form->field($model, 'user9')->textInput() ?>

<!-- attribute user10 -->
			<?= $form->field($model, 'user10')->textInput() ?>

<!-- attribute user11 -->
			<?= $form->field($model, 'user11')->textInput() ?>

<!-- attribute agent_uid -->
			<?= $form->field($model, 'agent_uid')->textInput() ?>

<!-- attribute status -->
			<?= $form->field($model, 'status')->textInput() ?>

<!-- attribute settlement_at -->
			<?= $form->field($model, 'settlement_at')->textInput() ?>

<!-- attribute user1_profit -->
			<?= $form->field($model, 'user1_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user2_profit -->
			<?= $form->field($model, 'user2_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user3_profit -->
			<?= $form->field($model, 'user3_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user4_profit -->
			<?= $form->field($model, 'user4_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user5_profit -->
			<?= $form->field($model, 'user5_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user6_profit -->
			<?= $form->field($model, 'user6_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user7_profit -->
			<?= $form->field($model, 'user7_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user8_profit -->
			<?= $form->field($model, 'user8_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user9_profit -->
			<?= $form->field($model, 'user9_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user10_profit -->
			<?= $form->field($model, 'user10_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute user11_profit -->
			<?= $form->field($model, 'user11_profit')->textInput(['maxlength' => true]) ?>

<!-- attribute yct_price -->
			<?= $form->field($model, 'yct_price')->textInput(['maxlength' => true]) ?>

<!-- attribute unlock_rate -->
			<?= $form->field($model, 'unlock_rate')->textInput(['maxlength' => true]) ?>

<!-- attribute user1_unlock -->
			<?= $form->field($model, 'user1_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user2_unlock -->
			<?= $form->field($model, 'user2_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user3_unlock -->
			<?= $form->field($model, 'user3_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user4_unlock -->
			<?= $form->field($model, 'user4_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user5_unlock -->
			<?= $form->field($model, 'user5_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user6_unlock -->
			<?= $form->field($model, 'user6_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user7_unlock -->
			<?= $form->field($model, 'user7_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user8_unlock -->
			<?= $form->field($model, 'user8_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user9_unlock -->
			<?= $form->field($model, 'user9_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user10_unlock -->
			<?= $form->field($model, 'user10_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute user11_unlock -->
			<?= $form->field($model, 'user11_unlock')->textInput(['maxlength' => true]) ?>

<!-- attribute agent_cost -->
			<?= $form->field($model, 'agent_cost')->textInput(['maxlength' => true]) ?>
        </p>
        <?php $this->endBlock(); ?>
        
        <?=
    Tabs::widget(
                 [
                    'encodeLabels' => false,
                    'items' => [ 
                        [
    'label'   => Yii::t('models', 'ComboAllot'),
    'content' => $this->blocks['main'],
    'active'  => true,
],
                    ]
                 ]
    );
    ?>
        <hr/>

        <?php echo $form->errorSummary($model); ?>

        <?= Html::submitButton(
        '<span class="glyphicon glyphicon-check"></span> ' .
        ($model->isNewRecord ? '保存' : '保存'),
        [
        'id' => 'save-' . $model->formName(),
        'class' => 'btn btn-success'
        ]
        );
        ?>

        <?php ActiveForm::end(); ?>

    </div>

</div>

